package com.ssy.lingxi.order.model.vo.process.request;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 新增/修改交易规则，支付环节设置
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-24
 */
public class OrderTradeProcessPaymentVO implements Serializable {
    private static final long serialVersionUID = 6376276349347148148L;

    /**
     * 支付次数，前端生成，从1开始，递增+1
     */
    @NotNull(message = "支付次数要大于0")
    @Positive(message = "支付次数要大于0")
    private Integer batchNo;

    /**
     * 支付环节
     */
    @NotBlank(message = "支付环节不能为空")
    @Size(max = 30, message = "支付环节最长30个字符")
    private String payNode;

    /**
     * 支付比例
     */
    @NotNull(message = "支付比例要大于等于0，小于等于100")
    @PositiveOrZero(message = "支付比例要大于等于0，小于等于100")
    @Max(value = 100, message = "支付比例要大于等于0，小于等于100")
    private BigDecimal payRate;

    public Integer getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(Integer batchNo) {
        this.batchNo = batchNo;
    }

    public String getPayNode() {
        return payNode;
    }

    public void setPayNode(String payNode) {
        this.payNode = payNode;
    }

    public BigDecimal getPayRate() {
        return payRate;
    }

    public void setPayRate(BigDecimal payRate) {
        this.payRate = payRate;
    }
}
